package com.newdjk.newdoctor.entity;

import org.greenrobot.greendao.annotation.Convert;
import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Property;
import org.greenrobot.greendao.annotation.Unique;

import java.util.List;
import org.greenrobot.greendao.annotation.Generated;

@Entity
public class LoginData {
    @Id(autoincrement = true)
    private Long id;
    @Unique
    String phone;
    @Property
    int type;

    @Override
    public String toString() {
        return "LoginData{" +
                "id=" + id +
                ", phone='" + phone + '\'' +
                ", type=" + type +
                ", list=" + list +
                '}';
    }

    @Convert(columnType = String.class, converter = InfoConverter.class)
    List<AppLicationEntity> list;

    @Generated(hash = 562295834)
    public LoginData(Long id, String phone, int type,
            List<AppLicationEntity> list) {
        this.id = id;
        this.phone = phone;
        this.type = type;
        this.list = list;
    }

    @Generated(hash = 1578814127)
    public LoginData() {
    }

    public Long getId() {
        return this.id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getPhone() {
        return this.phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public int getType() {
        return this.type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public List<AppLicationEntity> getList() {
        return this.list;
    }

    public void setList(List<AppLicationEntity> list) {
        this.list = list;
    }



   
}
